<?php

namespace App\Http\Requests\Admin;

use App\Http\Controllers\Wholesale\Traits\WholesaleTrait;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Support\Arr;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Crypt;

class FilterArrRequest extends BaseRequest
{
    //验证签名
    public function withValidator($validator)
    {
        $flag = $this->validateSign([]);
        $validator->after(function ($validator) use($flag) {
            if (!$flag) {
                $validator->errors()->add('sign', '签名错误');
            }
        });
    }
}
